#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.${artifactId}.data.dao;

import ${package}.${artifactId}.data.model.BaseDO;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

public interface BaseDAO<T extends BaseDO> {

    int save(T t);

    int saveAll(List<T> list);

    int delete(T t);

    int deleteById(Integer integer);

    int update(T t);

    int updateAll(List<T> t);

    T getById(Integer integer);

    List<T> getAll();

    List<T> searchByExample(Example example);

    T selectOneByExample(Example example);

    T selectOneNotDelByExample(Example example);
}
